/**
 * Created by ybjaa on 2017/5/6.
 */
import {Menu} from "./Menu";
import {InMemoryDbService} from "angular-in-memory-web-api";

export class testData implements InMemoryDbService{

    createDb(){
        return {result:true,data:this.menus,message:""};
    }

    menus:any[]=[
        {menuName:"a1",menuURL:"",ID:1,parentID:0,nextID:2,isWrite:true,isDelete:true},
        {menuName:"b1",menuURL:"",ID:2,parentID:0,nextID:6,isWrite:true,isDelete:true,
            children:[
                {menuName:"bb1",menuURL:"",ID:3,parentID:2,nextID:4,isWrite:true,isDelete:true},
                {menuName:"bb2",menuURL:"",ID:4,parentID:2,nextID:7,isWrite:true,isDelete:true,
                    children:[
                        {menuName:"bbb1",menuURL:"",ID:5,parentID:4,nextID:null,isWrite:true,isDelete:true}
                        ]
                },

                {menuName:"bb3",menuURL:"",ID:7,parentID:2,nextID:8,isWrite:true,isDelete:true},
                {menuName:"bb4",menuURL:"",ID:8,parentID:2,nextID:null,isWrite:true,isDelete:true},
            ]
        },
        {menuName:"c1",menuURL:"",ID:6,parentID:0,nextID:9,isWrite:true,isDelete:true,children:null},
        {menuName:"d1",menuURL:"",ID:9,parentID:0,nextID:null,isWrite:true,isDelete:true,
            children:[
                {menuName:"dd1",menuURL:"",ID:10,parentID:9,nextID:11,isWrite:true,isDelete:true},
                {menuName:"dd2",menuURL:"",ID:11,parentID:9,nextID:12,isWrite:true,isDelete:true},
                {menuName:"dd3",menuURL:"",ID:12,parentID:9,nextID:13,isWrite:true,isDelete:true},
                {menuName:"dd4",menuURL:"",ID:13,parentID:9,nextID:14,isWrite:true,isDelete:true},
                {menuName:"dd5",menuURL:"",ID:14,parentID:9,nextID:15,isWrite:true,isDelete:true},
                {menuName:"dd6",menuURL:"",ID:15,parentID:9,nextID:null,isWrite:true,isDelete:true}
                ]
        }

    ]

}

